Use __invert__ instead of __not__
Add simple boolean negation test