fix node unit tests