Fix test case

As the original `res` is retained and not `null`-ified, this shoul be
`undefined`