Fix tests for darwin

The only one that I'm not sure about is `it("should error with EISDIR if the path is a directory (or EPERM on darwin)`. I don't know why EPERM is occurring.

But the other tests completely fail, in accordance with Node.js documentation. :(