refs #4996 and even more tests and more bugfixes
refs #4996 had to patch qunit as document.title was not a string but an img element on firefox