Made test reentrable