added unit tests for search module