Fixed deserealize booleans. Added Test case.