assertInvalid

I wanted to be able to check that an object's property had been set to Invalid.

Thanks very much for taking the time to looks at these PRs (and for writing brstest in the first place).