reenable and fix tests, integrate nan for broader node version support