unit testing for color generation