Add unit tests for flavors command.

This pull request adds some unit test for a recently added `show flavors` command. Also it refactors `show flavors` to use it's own provider.