         testView.unload {},
           onSuccess: ->
             unloaded.should.equal 1, "unloaded event was not noticed"
+            testView.unload {}
             done()
           onFailure: ->
             done new Error "could not unload view"
-      onFailure: ->
-        done new Error "could not preload view"
+      onFailure: (error) ->
+        done new Error "could not preload view: " + error.errorDescription

        done new Error "could not push layer: " + error.errorDescription
    }


  it "should track WebView preloaded & unloaded events", (done)->
    preloaded = 0

    steroids.view.on "created", ->
      created++

    lulView = new steroids.views.WebView "http://www.google.com#00"

    steroids.layers.push {
      view: lulView
    }, {
      onSuccess: ->
        setTimeout ->
