Fix various Qunit tests

These appear to be due to recent changes introducing tap and
assertMode functions

Note there are still 3 tests failing in debug mode to do with overlays

Change-Id: I7ec5914168d81f532a93ce2ac4cd581e26b65eb6
Merge "Fix various Qunit tests"