tests: Add missing "import sys".