wrote tests for favoriteFlavor

implemented favoriteFlavor