Follow up on QUnit tests review

See #3048