Fix unexpected exception when delete task with deleted milestone.
Rename and improve test names on us autoclossing tests module.