Use pytest.importorskip; fix some other tests.