force agg backend in tests

Should remove mpl warning messages for OS X users. Thanks @antgonza for letting me use your laptop to test this!