Improved test for colors