eliminate race in cancel test