Fixing broken test test_plugins.test_discover_invalid_type()