YES, you can, because undefined is defined as undefined.
console.log(
/*global.*/undefined === window['undefined'] &&
/*global.*/undefined === (function(){})() &&
window['undefined'] === (function(){})()
) //true
your case:
test("value1", undefined, "value2")
you can also create your own undefined variable:
Object.defineProperty(this, 'u', {value : undefined});
console.log(u); //undefined