added tests for search module