added unit tests for boolean attributes

fixes #1022