Tests: Fixed test failing in the build mode.