fix for tests to pass on mac