Updated the test for cancelling a request