Made some qunit tests synchronous
and also for test_UserPrefs.arrangePage
Merge branch '1104_qunit_failures' into 988_toggle_spoilers