Updated QUnit; updated use of deprecated functions in tests