replaces deprecated qunit 'raises' with 'throws'
Being consistent about throwing Errors rather than strings