tests for Search lib