           overlay: 0
       if !@$fixture then @use('.link_trigger')
       @$trigger = $el || @$fixture.find('a').eq(0)
-      $(@$trigger).windoze($.extend(defaults, opts))
-
-  QUnit.testDone -> tester.reset()
+      @$trigger.windoze($.extend(defaults, opts))
+
+  QUnit.testDone $.proxy(tester.reset, tester)
 
   module 'Element Creation'
 

        .append($('<div />').attr('id', 'modal_layer'))
    reset: ->
      $('body > *').not("[id^='qunit-']").remove()
    use: (selector) ->
      @$fixture = $(selector)
      @$fixture.siblings().remove()

    equal wdz.delegate, true, 'delegate is set to true'
    equal wdz.init_shown, true, 'init_shown is set to true'
    equal wdz.container, '#foo', 'container is set to #foo'

)(jQuery)