Abstracted common code in integration test