Added tests of operation cancelling