Made some qunit tests synchronous
and also for test_UserPrefs.arrangePage
Merge pull request #1105 from AdmiralJota/1104_qunit_failures

Made some async qunit tests synchronous