JPA backend and unit tests