added SearchServiceTests. Bug fixed in SearchService