finalized Task class 100% coverage