make sure to clean up the CancelThread. Sometimes this test fails and then the cancel thread hangs around.