More robust integration test