convert tests to JPA