refactoring the integration tests