updating for newer versions of Node; fixing spec