mixed type
tests for flavor convert functions
refactoring