Add more testing and create task creation for agent instances
Change Task to TaskDefinition and BuiltTask to Task