Fix a few broken tests and ansi bug with color code and numeric text.