corrected integration test