Tests for JPA entity managers