Completed methods and tests for Task Class.