added unit tests for search creation