test: Fix the tests to work under OS X.