Added test for cancelling variables.