Remove use of deperecated QUnit.raises function

Karma complains about this

https://github.com/jquery/qunit/commit/6b59e686659249b2efc1411a6b80b937eceaf715

See https://github.com/jquery/qunit/issues/460