Refactoring integration tests.