plot and test