test for color gradient, extend array util