Unittest flavor list

Add unit test for flavor list.
Thanks Kevin. I just found out dict.keys() doesn't return list() in python 3.3 any more.