next implement JUnit tests

fix type return page
fix search results validation