fix test errors, and update errno casing between node 0.10 and node 0.11