Would probably be better to do a deep equals here instead of stringify compare. I've used this module in the past for this, just the assert.deepEqual functionality without needing to try/catch https://github.com/substack/node-deep-equal