Implement unit test comparator for Color and improve new comparator code.