Fix order of result/expected in test.js

The parameter order was wrong in several places. It should be ( actual,
expected, message ) according to QUnit docs.