Fix hardening-mode warning in new test