test boolean value
partial rewrite