Bug 1070731 - [sms] unit test refactoring for new version chai.assert api

test_agent used very old version chai library version=0.5.3
in the current version=1.9.1 deepEqual take prototype into consideration

apps/sms/test/unit/localization_helper_test.js - plain structure
changed for you receipt code, which fail run second function
```javascript
  [onL10nReady, onTimeFormatChange].forEach(function(forceUpdateMethod) {
    suite('localizes date & time ' + forceUpdateMethod.name +' >', function() {
      var node;

      setup(function() {
        node = document.createElement('div');
        node.classList.add('l10n-contains-date');
        document.body.appendChild(node);
      });

      teardown(function() {
        node.remove();
      });

      test('ignores if date or format are unavailable', function() {
        node.dataset.l10nDate = '';
        node.dataset.l10nDateFormat = 'format';
        node.textContent = 'not-changed-content';

        forceUpdateMethod();

        assert.equal(node.textContent, 'not-changed-content');
        assert.isFalse(node.hasAttribute('data-l10n-id'));
        assert.isFalse(node.hasAttribute('data-l10n-args'));

        node.dataset.l10nDate = Date.now();
        node.dataset.l10nDateFormat = '';
        node.textContent = 'not-changed-content';

        forceUpdateMethod();

        assert.equal(node.textContent, 'not-changed-content');
        assert.isFalse(node.hasAttribute('data-l10n-id'));
        assert.isFalse(node.hasAttribute('data-l10n-args'));
      });

      test('correctly formats node content', function() {
        var timestamp = Date.now();

        function assertChange(format, doNotFormat) {
          // In case of time format change date-only elements aren't updated
          if (doNotFormat) {
            assert.equal(
              node.textContent, '', 'Date-only elements should not be updated'
            );
          } else {
            assert.equal(
              node.textContent,
              Utils.date.format.localeFormat(new Date(timestamp), format)
            );
          }

          assert.isFalse(node.hasAttribute('data-l10n-id'));
          assert.isFalse(node.hasAttribute('data-l10n-args'));
        }

        node.dataset.l10nDate = timestamp;
        node.dataset.l10nDateFormat = 'format';

        // In case of time format change date-only elements shouldn't be updated
        assertChange(node.dataset.l10nDateFormat, forceUpdateMethod());

        node.dataset.l10nDateFormat12 = 'format12';
        node.dataset.l10nDateFormat24 = 'format24';

        navigator.mozHour12 = true;

        assertChange(node.dataset.l10nDateFormat12, forceUpdateMethod());

        navigator.mozHour12 = false;

        assertChange(node.dataset.l10nDateFormat24, forceUpdateMethod());
      });

      test('correctly formats node l10n attributes', function() {
        var timestamp = Date.now();

        function assertChange(format, doNotFormat) {
          var l10nAttributes = navigator.mozL10n.getAttributes(node);
          // In case of time format change date-only elements aren't updated
          if (doNotFormat) {
            assert.deepEqual(l10nAttributes.args, {
              data: 'custom'
            }, 'Date-only elements should not be updated');
          } else {
            assert.deepEqual(l10nAttributes.args, {
              data: 'custom',
              date: Utils.date.format.localeFormat(new Date(timestamp), format)
            });
          }

          assert.equal(l10nAttributes.id, 'custom');
          assert.equal(node.textContent, 'not-changed-content');
        }

        navigator.mozL10n.setAttributes(node, 'custom', {
          data: 'custom'
        });
        node.dataset.l10nDate = timestamp;
        node.dataset.l10nDateFormat = 'format';
        node.textContent = 'not-changed-content';

        // In case of time format change date-only elements shouldn't be updated
        assertChange(node.dataset.l10nDateFormat, forceUpdateMethod());

        node.dataset.l10nDateFormat12 = 'format12';
        node.dataset.l10nDateFormat24 = 'format24';

        navigator.mozHour12 = true;

        assertChange(node.dataset.l10nDateFormat12, forceUpdateMethod());

        navigator.mozHour12 = false;

        assertChange(node.dataset.l10nDateFormat24, forceUpdateMethod());
      });
    });
  });

```