You can just leave the test as it was and check for Audio instead of HTMLAudioElement
assert.ok(audio instanceof window.Audio);
you won't need the setup function anymore