Fix an error when executing the tests in debug mode.