Removed use of pkg_resources in test_viewer
Added matplotlib as a dependency