#last changes for color

fix error linked to the unchanged functions called in the .cpp tests

and securize the changment of lineColor in the functions in the factory