 
 				expect(peer._connection.createDataChannel).toHaveBeenCalled()
 				callArgs = peer._connection.createDataChannel.mostRecentCall.args
-				expect(callArgs.length).toBe(2)
-				expect(callArgs[0]).toBe('a')
-				expect(callArgs[1]).toBe(Peer.prototype._channelConfiguration)
+				expect(callArgs).toEqual([
+						'a'
+						Peer.prototype._channelConfiguration
+					])
 
 			it 'should assign the created channel to itself', ->
 				peer = new Peer(fakeController, '1', false, FakeRTCPeerConnection)

				expect(fakeController.server.emitTo).toHaveBeenCalled()

				callArgs = fakeController.server.emitTo.mostRecentCall.args
				expect(callArgs.length).toBe(4)
				expect(callArgs[0]).toBe('1')
				expect(callArgs[1]).toBe('peer.connectionRequest')
				expect(callArgs[2]).toBe(fakeController.id)
				expect(callArgs[3]).toBe(undefined)		# old type identifier, currently unused but not yet removed

			it 'should create a data channel', ->
				peer = new Peer(fakeController, '1', false, FakeRTCPeerConnection)

				expect(constructorSpy).toHaveBeenCalled()

				callArgs = FakeRTCPeerConnection.mostRecentCall.args
				expect(callArgs).toEqual([
						Peer.prototype._serverConfiguration
						Peer.prototype._connectionConfiguration
					])

				expect(peer._connection.onicecandidate).toEqual(peer._onIceCandidate)
				expect(peer._connection.oniceconnectionstatechange).toEqual(peer._onIceConnectionStateChange)
