add unit tests with JPA