Adds tests for flavors tasks, fixes issues found
Adds test_flavor tests; fixes issues found in flavor tasks