Support booleans

Fixes #3

Also provided an update to the unit test.