[test] Swap the arguments of ASSERT_EQ for several test cases.

The first one is the expected value whereas the second one is the
tested/actual value.