test spec for hexToRgb