added cancel test.