Fix inverted condition and add tests.
Merge branch 'master' of https://github.com/nlwillia/fp4java7