JUnit tests for search