Refactor integration tests to make them 3 times faster.