Fix race conditions in agnosticbin2 tests

Change-Id: Iff9a1f4bb45b36f458729c03fa5cf90a690d496b