 					test.expect 4
 					test.done()
 
-				@model.applyOp @name, {v:0, op:[{i:'hi', p:0}]}, (error, appliedVersion) ->
+				@model.applyOp @name, {v:0, op:[{i:'hi', p:0}]}, (data, error) ->
 					test.ifError error
 
 		'get a nonexistent document passes null to the callback': (test) ->

					test.deepEqual op, serverTransformed
					onOpApplied()

				@model.applyOp @name, {v:0, op:serverOp}, (error, v) ->
					test.ifError error

		'doc fires both remoteop and change messages when remote ops are received': (test) ->

			test.throws ->
				@c.open @name, 'does not exist', ->
			test.done()

		'Submitting an op and closing straight after works': (test) ->
			# This catches a real bug.
			client.open @name, 'text', "http://localhost:#{@port}/sjs", (doc, error) =>
				doc.insert 'hi', 0
				doc.close ->
					test.done()

	# This isn't working yet. I might have to rethink it.
	#	'opening a document with a null name will open a new document with a random document name': (test) ->
