#SB-232: Convert the groovy search tests into JUnit ones

Implemented.