updates jpa tests, changes how the relations between entities are handled