tests for booleans and nil