Fix test under IE11

Thanks to @Candid for the fix.

Fixes #299