fix tests on OS X