Added some tests to CommandCancelTest