Avoid set-but-not-used warning/error in a test