agent tests are flaky

Change-Id: Ie5d4b8e2ae43bd88700f88e3ecc10e27f5b912d4