Make tests (sortof) run on IE/Safari

Currently breaks on IE (duration detect fail)
and on Safari (doesn't fire onended)

Fixes https://github.com/brion/ogv.js/issues/148
Fix duration detection on IE

Were not correctly handling the case where we appear midway
in a page.

Fixes https://github.com/brion/ogv.js/issues/147