Fixed QUnit tests

Tests comply with change https://gerrit.wikimedia.org/r/#/c/145483/ now.
Specifies expected assertions (see actual QUnit code, not docs).