 
 				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(constructorSpy).toHaveBeenCalled()

				callArgs = FakeRTCPeerConnection.mostRecentCall.args
				expect(callArgs.length).toBe(2)
				expect(callArgs[0]).toEqual(Peer.prototype._serverConfiguration)
				expect(callArgs[1]).toEqual(Peer.prototype._connectionConfiguration)

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

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

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

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