test fixes. As inmemory is no longer supported, tests are run only for persistant implementation.(It was tested in the same way before, but the test were marked as integration tests).