[tests] Prefer raising SkipTest if available