Correct some async issues in the worker detail tests.

Change-Id: Ib4aa75b36970cc6d9ab0c47d3b7067cb0ee3a4e8