 
       it 'should find ref of child class', ->
         refs = refactor.find new Range [0, 6], [0, 7]
-        expect(refs).to.have.length 2
-        expect(refs[0].range.start.row).to.be 1
-        expect(refs[0].range.start.column).to.be 16
-        expect(refs[0].range.end.row).to.be 1
-        expect(refs[0].range.end.column).to.be 17
-        expect(refs[1].range.start.row).to.be 2
-        expect(refs[1].range.start.column).to.be 16
-        expect(refs[1].range.end.row).to.be 2
-        expect(refs[1].range.end.column).to.be 17
+        expect(refs).toHaveLength 2
+        expect(refs[0].range).toEqual new Range [1, 16], [1, 17]
+        expect(refs[1].range).toEqual new Range [2, 16], [2, 17]
 
       it 'should find ref of extends class', ->
         refs = refactor.find new Range [1, 16], [1, 17]
-        expect(refs).to.have.length 2
-        expect(refs[0].range.start.row).to.be 0
-        expect(refs[0].range.start.column).to.be 6
-        expect(refs[0].range.end.row).to.be 0
-        expect(refs[0].range.end.column).to.be 7
-        expect(refs[1].range.start.row).to.be 2
-        expect(refs[1].range.start.column).to.be 16
-        expect(refs[1].range.end.row).to.be 2
-        expect(refs[1].range.end.column).to.be 17
+        expect(refs).toHaveLength 2
+        expect(refs[0].range).toEqual new Range [0, 6], [0, 7]
+        expect(refs[1].range).toEqual new Range [2, 16], [2, 17]


      it 'should find function scoped refs', ->
        refs = refactor.find new Range [2, 8], [2, 9]
        expect(refs).to.have.length 1
        expect(refs[0].range.start.row).to.be 3
        expect(refs[0].range.start.column).to.be 2
        expect(refs[0].range.end.row).to.be 3
        expect(refs[0].range.end.column).to.be 3

      it 'should find function external scoped refs', ->
        refs = refactor.find new Range [3, 6], [3, 7]
        expect(refs).to.have.length 2
        expect(refs[0].range.start.row).to.be 1
        expect(refs[0].range.start.column).to.be 0
        expect(refs[0].range.end.row).to.be 1
        expect(refs[0].range.end.column).to.be 1
        expect(refs[1].range.start.row).to.be 5
        expect(refs[1].range.start.column).to.be 12
        expect(refs[1].range.end.row).to.be 5
        expect(refs[1].range.end.column).to.be 13

    do ->
      refactor = new Refactor """


      it 'should find ref from outer of array', ->
        refs = refactor.find new Range [0, 0], [0, 1]
        expect(refs).toHaveLength 2
        expect(refs[0].range).toEqual new Range [3, 2], [3, 3]
        expect(refs[1].range).toEqual new Range [4, 2], [4, 3]

      it 'should find ref from inner of array', ->
        refs = refactor.find new Range [3, 6], [3, 7]
        expect(refs).toHaveLength 2
        expect(refs[0].range).toEqual new Range [1, 0], [1, 1]
        expect(refs[1].range).toEqual new Range [4, 6], [4, 7]

    do ->
      refactor = new Refactor """
