Cleanup testAttributesAreSetByConstructorGivenStdClass

This cleans up @crynobone implementation on suggestion by @JosephSilber.