test that we can cancel tasks