Deadlock problem in mushroom test fixed