Bug 1070751 - [system] 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
these changes do not look chai-related. Do you know why this is needed?