Add unit tests to internal search engine service