Fix testing for property accessors not throwing an exception
Use getattr() instead of __dict__