improving test coverage of search