Add assertInvalid as syntax sugar

Hello,

Nicer syntax is often a good thing. The function `assertNotValid()` sounds and feels a little bit odd. `assertInvalid()` is a lot smoother, don't you think?