making unit tests compatible with node again