Fix tests. I'm not sure there's a nice way to test this change since there's no global node object