Fixed QUnit tests

Tests comply with change https://gerrit.wikimedia.org/r/#/c/145483/ now.