Fix testing for property accessors not throwing an exception