writing plot_lib tests