AffectsMembersAttribute and unit tests