Add tests for predictiveSearch