Fix test failure in node (was passing in browser)