Added tests for most of the plotting functions