added test cases for JPA