Bug 1070751 - [system] unit test refactoring for new version chai.assert api (rebased)

I'd call this function `assertArraysEqual`.