fixed bug in testing the coloring function