added some test methods for task as well as some comments