test fix for race condition