adiing new test for pojo search with regular query definitions, related changes