Added some unit testing for Task and Schedule