add tests for Search