added tests for search