fix integration test timing problem