maybe if instead of doing the delete object in the background you could fire a delete container request into greenthread and the explicitly unlock it with an object delete in the test  then with that setup  if you wanted to get really fancy  you could give the retry loop a mock sleep that wants on an event which you uncork after deleting the object  