Support for OSX: error code is not defined on OSX, solved with preproces...

...sor. Added async call to wipe test so the test actually passes on OSX.