amend test for case where matplotlib is not installed