Added tests for cancel