OGM-326

* Making `@SkipByGridDialect` usabel in tests inherited from `JpaTestCase`
* Closing stale sessions after test methods