Added tests for jpa module