We have a 2 year old, 12 pound mutt, probably an affenpinscher terrier mix. We adopted him 3 or 4 months ago. He was a stray.
He is a gentle, loving dog. He's curled on my lap as I type this. He came from the rescue group housetrained.
Whenever we leave, he poops on our bed. Sometimes it's a pillow and not the bed itself. If we lock him out of the bedroom, he poops or pees wherever he wants--usually in the bathroom or near the cat tower. Once he pooped on our dining table.
We have a doggie door which he uses without problem. We feel like he is letting us know he is totally not okay that we left him. We do have two other dogs and a cat he plays with. (Though the cat is locked up when we are gone so it doesn't get out the doggie door. He was a stray that is Feline Leukemia positive.)