window.top will point to the topmost window. So when running tests in Karma it points to the Karma-runner instead of the Gardr host frame. window.parent should work better.
Release v0.0.3.