Improved integration test.