test for unserialize boolean return value

tests distinguishing between error return value and deserialized boolean