Remove unused variable in test

And the Oscar for a PR with littlest change goes to @pangratz

This cleans up unused variable introduced in #3956