Fix order of arguments in assertEqual

Some tests used incorrect order assertEqual(observed, expected).

The correct order expected by testtools is
assertEqual(expected, observed).

Change-Id: I1184cb9f163ffb6416be32ddb1386c3bfd9b1006
Closes-Bug: #1259292