changed test to deepEqual