buster51 I hear you! First of all, you are NOT crazy or imagining things. You can read your own son better than any of your relatives or friends can, and if your instincts and the way he acts is giving you the feeling 'this is deliberate, to try to get a reaction/test me' then you are in all likelihood completely right
Of all the things to test and have issues with, I'm pretty sure affection and interaction with parents has to be one of the most common
I'm single so I've never dealt with any 'two parent' issues like this. Because this involves both of you, you and your DH IMHO should sit down and work out what your strategy is going to be together. It doesn't matter what your friend thinks, but it's far far better if you and your DH are on the same page. Does he understand this behaviour? If so, great. A united front is really helpful.
With the little deliberate behaviours - I've always seen them as caused by her emotional issues and what she's going through, not just naughtiness. The control issues and the getting pleasure out of button pushing...I've found that if you frustrate it in one form eg. you manage to stop your child doing x, then it will manifest itself in a different way and your child will start doing y instead. Only a change on a deeper emotional level/progress with attachment etc, will result in lots of progress with outward behaviour issues
However, that didn't mean that I didn't try and deal with the little things at all! I did it wrong at first (I had no clue about alternate parenting strategies) but eventually I realised that natural consequences applied without shouting and showing lots of emotion were the most effective way of dealing with it. Also - battle picking.
Break a plate - you pay for it, you clean it up. "Forget" to clean the toilet and leave it all dirty - you go back and clean it, and clean the other loo as well. Etc. I never made a big deal out of those behaviours, but praised the good, and forgot about the bad once the natural consequences were imposed
Affection is a bit harder because it's not so easily ignored - I mean, it hurts if your child is rejecting you for the other parent.
But maybe you could try - Daddy deliberately turns his hugs into 'family hugs' instead and invites you in? Or you totally ignore it, or praise him for it? I'll think about it for you