nit we can probably remove this function and call `assert.deepEqual` instead right?