Added code for testing child tasks and task factories.