Tests for plotting functions