set_color duplicate and test case