cancellation unit tests