new tests for queries using jpql and criteria api