Added function for sub-tasks in taskcoach_test.py