     [context, adapter] = getMockModel()
     ok !adapter.defaultRequestOptions.formData
 
-    helpers.render '<input type="file" data-bind="fileAttributes"></input>', false, context, (node) ->
+    helpers.render '<input type="file" data-bind="fileAttributes"></input>', false, context, (node, view) ->
       helpers.triggerChange(node.childNodes[0])
-      strictEqual context.fileAttributes, undefined
+      strictEqual view.fileAttributes, undefined
       QUnit.start()
 
   asyncTest 'it should bind the value of file type inputs with the "multiple" flag', 2, ->
     [context, adapter] = getMockModel()
     ok !adapter.defaultRequestOptions.formData
 
-    helpers.render '<input type="file" data-bind="fileAttributes" multiple="multiple"></input>', false, context, (node) ->
+    helpers.render '<input type="file" data-bind="fileAttributes" multiple="multiple"></input>', false, context, (node, view) ->
       helpers.triggerChange(node.childNodes[0])
-      deepEqual context.fileAttributes, []
+      deepEqual view.fileAttributes, []
       QUnit.start()
 
   asyncTest 'it should bind the value of file type inputs when they are proxied', 2, ->

    <input id="trade" type="radio" data-bind="ad.sale_type" name="sale_type" value="trade" checked/>
  '''

  context = Batman
    ad: Batman()

  helpers.render source, context, (node) ->
    fixed = node[0]
    free = node[1]
    trade = node[2]

    QUnit.start()

asyncTest 'it should bind the input value and update the input when it changes', 2, ->
  helpers.render '<input data-bind="one" type="text" />', {one: 'qux'}, (node, view) ->
    equal $(node[0]).val(), 'qux'
    view.set('one', "bar")
    equal $(node[0]).val(), 'bar'
    QUnit.start()

asyncTest 'it should bind the input value but not update the window object if the input changes', 2, ->
  helpers.render '<input data-bind="nonexistantKey" type="text" />', {}, (node) ->
    equal node[0].value, ''
    node[0].value = 'foo'
    helpers.triggerChange(node[0])
