besides, you also missed a lot of important test cases here for the method `check_type_of_task`