Change from rewire to sandboxed-module and properly set the platform for tests.
convert to NAN for 0.8->0.11+ compatibility