I think here is better to use assert.deepEqual