Made test cases work under OSX.