Add some test cases for parsing/printing hex colors.

So here are some test cases. The parsing code isn't particularly robust on invalid input though.