tests: fix a failure in Lex/C++ tests on Mac OS X