Added tests around task deletion and subtask creation