Fix os-test on OS X.
Correct mode.