Fix the tests on osx
Merge pull request #200 from bobtfish/fix_tests_on_osx

Fix the tests on osx