fixed spec to work with node better