Refactor the testcase a little. #1
Make sure we test for the property before we use it.

Fixes #1