agnosticbin_tests: Solve race conditions on tests

Change-Id: I8be8cfcb3b11f0576a96f52abe072aba82224031