adding unit tests for cancelAllOperationsOfType: