Add tests for exists