LOCSERVICES-4122 Refactoring test to use deepEqual.