Adding fonction to basicFlux that set all std ouput to stringstream