Make it possible to run tests without 'matplotlib' installation