added "test" script
convert to NAN@0.6.0 for Node 0.8->0.11+ support