fixed bug in plotter_test