I correctly refactored integration test so that it has predictable behavior.