Added tests for cancel timeout