     steroids.view.on "created", ->
       created++
 
-    lulView = new steroids.views.WebView {location: "http://www.google.com", id:"eventTest"}
+    lulView = new steroids.views.WebView "http://www.google.com#00"
 
     steroids.layers.push {
-      view: "eventTest"
+      view: lulView
     }, {
       onSuccess: ->
         setTimeout ->

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

    testView = new steroids.views.WebView {location: "http://www.google.com", id:"eventTrackerTest"}

    testView.preload {},
      onSuccess: ->

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

  it "should preload and unload WebView twice", (done)->
    preloaded = 0
    unloaded = 0

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

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

    testView = new steroids.views.WebView {location: "http://www.google.com#01", id:"preloadedWebView01"}

    testView.preload {},
      onSuccess: ->
        preloaded.should.equal 1, "preloaded event was not noticed"

        testView = new steroids.views.WebView {location: "http://www.google.com#01", id:"preloadedWebView01"}
        testView.unload {},
          onSuccess: ->
            unloaded.should.equal 1, "unloaded event was not noticed"

            testView = new steroids.views.WebView {location: "http://www.google.com#01", id:"preloadedWebView01"}

            testView.preload {},
              onSuccess: ->
                preloaded.should.equal 2, "preloaded event was not noticed"

                testView = new steroids.views.WebView {location: "http://www.google.com#01", id:"preloadedWebView01"}
                testView.unload {},
                  onSuccess: ->
                    unloaded.should.equal 2, "unloaded event was not noticed"

                    done()
                  onFailure: (error) ->
                    done new Error "could not unload view: " + error.errorDescription

              onFailure: (error) ->
                done new Error "could not preload view: " + error.errorDescription

          onFailure: (error) ->
            done new Error "could not unload view: " + error.errorDescription
      onFailure: (error) ->
        done new Error "could not preload view: " + error.errorDescription

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