TST : make tests use non-interactive matplotlib backend

Closes #3544
Merge pull request #3546 from tacaswell/test_hierarchy_mpl_import

TST : make tests use non-interactive matplotlib backend