add test for canceling once