Rephrase task_cancel tests in the form of a boost_test.