Added unit tests for _hasProperty

This is preliminary to me messing with it as a testbed for Invocation.