Add gen.Task for asynchroneous Tasks + Add tests for API and Worker