test case that fails in browsers, works in node; issue #20