Using Agg for plotting tests.