add tests for and