Added unit test to make sure boolean values are saved properly

@ritch or @dallonf plz & thx.