Fix for boolean example validation.

Only fail when boolean example isn't true or false - previous version always failed (example can't be both true and false at the same time).
Fixing test for boolean example.
Merge pull request #110 from jonathanbp/patch-1

Fix for boolean example validation.