             it("Should return a new mentions array with a mention inserted") {
                 var mentions: [Mention] = [Mention(range: NSRange(location: 0, length: 10), object: ExampleMention())]
                 let createMentionObject = ExampleMention(name: "Test Mention")
-                mentions |> insert([(createMentionObject, NSRange(location: 15, length: 12))])
+                mentions = mentions |> insert([(createMentionObject, NSRange(location: 15, length: 12))])
                 expect(mentions.count).to(equal(2))
                 expect(mentions[1]).to(equal(Mention(range: NSRange(location: 15, length: 12), object: createMentionObject)))
             }

                let insertText = "Test "
                expect(mentions[0].range.location).to(equal(0))
                expect(mentions[1].range.location).to(equal(15))
                mentions |> adjusted(forTextChangeAt: NSRange(location: 5, length: 0), text: insertText)
                expect(mentions[0].range.location).to(equal(0))
                expect(mentions[1].range.location).to(equal(15 + insertText.count))
            }

            it("Should return an array with a single item added") {
                var mentions: [Mention] = [Mention(range: NSRange(location: 0, length: 10), object: ExampleMention())]
                let mentionToAdd = ExampleMention(name: "Added Mention")
                mentions = mentions |> SZMentionsSwift.add(mentionToAdd, spaceAfterMention: false, at: NSRange(location: 0, length: 0))
                expect(mentions.count).to(equal(2))
                expect(mentions[0]).to(equal(Mention(range: NSRange(location: 13, length: 10), object: ExampleMention())))
                expect(mentions[1]).to(equal(Mention(range: NSRange(location: 0, length: 13), object: mentionToAdd)))
