Allow tests to pass when matplotlib is not present