Fix mode for qunit tests on non-english wikis

Change-Id: I0d25f1770b7e5425f3d2db6f00fce1793e77cf4a