Changing tests

Changing tests to use `deepEqual` instead of equal `JSON.stringify`