Fix potential test timing issue.