adding spec, copied from node cookbook.