Completed JPA queries and tested for single entity