fix tests intermittence