I had to refactor this test to use regexp rather than plain text comparison as using `Object.defineProperty` in `register` does not order objects the same way in Node.js 0.8 and 0.10

(As a side effect, now this test can pass on Windows)