added test for correctness of color tagging and traversal