fix unit tests under OS X