added boolean unit tests