Changed assertions to deepEqual()