test-debug.js: verify setting of DEBUG environment variable