refactor integration test helper
some refactoring of transactions integration test