Fix a way to test JPA