Tests: Avoid use of QUnit.reset() in tests by splitting them

Fix #14040
Close gh-1457