Refactored TestRainbow (handling the command line interface).