cleaned up method testColorValueRange in Color