Add NewRGB fn and test