Unittest flavor list

Add unit test for flavor list.