race problem in test