fix tests
Added max_tries, tries to task. result schema fixes.