Fix compilation issue in xcode for tests.