Add tests for --list-colors.
Test --debug.
Refactor debug options.