Fix boolean test, incorrectly changed. Off-by-one errors are particularly ugly with booleans ;) Fixes #77
Merge