Added test cancelling.