add test to Flow2Color.cpp and fixed bugs