Test with race detection