agnosticbin3: Fix test.

Use events instead of timeouts to make actions in order to make tests a bit
more determinist even when tests are running under poor computational conditions.

Change-Id: Ieb48704e9a38f8f017288d891dc216fb8c0679e8