Automatically skip thirdparty test if not importable

I forgot to migrate this feature.