added tests to verify failure; fails only in Node.js