Fix failing tests in Node.js 0.11