test resolve_color, resolve_attribute

also move resolve_color above resolve_attribute
in formatters.py to reflect their dependency (and
complexity) order.