JUnit Test Search working