conditionally run matplotlib tests only if available