Add test case to ensure graceful failure on OSX.
Merge pull request #312 from mhaskel/test_osx_graceful_failure

Test osx graceful failure