Another test
Check the equality with _.isEqual

EJSON.stringify doesn't guarantee the order of keys.
Always sort keys to simplify some cases.

And don't modify the argument.