Fixed tests to take upload delay into account.