could you use deepEqual here?

http://api.qunitjs.com/deepEqual/