improved test for remove_task