invert arguments in some assertEquals() calls

The first argument should always be the expected result, not the actual
data.