             it 'When the cron function is called', (done) ->
                 @timeout 4000
                 Konnector.all (err, body) =>
-                    for konnector in body
-                        if konnector.slug is 'free'
-                            konnector.importInterval = 'day'
-                            konnector.lastAutoImport = moment().format()
-                            konnector.save (err, res, body) =>
-                                poller.start true, () =>
-                                    @spy.callCount.should.equal 0
-                                    done()
+                    for konnector in body when konnector.slug is 'free'
+                        konnector.importInterval = 'day'
+                        konnector.lastAutoImport = moment().format()
+                        konnector.save (err, res, body) =>
+                            poller.start true, () =>
+                                @spy.callCount.should.equal 0
+                                done()
 
             it 'Then the cron function should not have been called after 23 hours', ->
                 @sandbox.clock.tick 23 * hour

                @timeout 4000
                poller.start true, ()=>
                    Konnector.all (err, body) =>
                        for konnector in body
                            if konnector.slug is 'free'
                                konnector.importInterval = 'day'
                                konnector.lastAutoImport = moment().format()
                                konnector.fieldValues = {}
                                poller.handleTimeout konnector, () =>
                                    @spy.callCount.should.equal 0
                                    done()

            it 'Then the cron function should not have been called after 23 hours', ->
                @sandbox.clock.tick 23 * hour

                @timeout 4000
                poller.start true, ()=>
                    Konnector.all (err, body) =>
                        for konnector in body when konnector.slug is 'free'
                            konnector.importInterval = 'month'
                            konnector.lastAutoImport = moment().format()
                            konnector.fieldValues = {}
                            poller.handleTimeout konnector, () =>
                                @spy.callCount.should.equal 0
                                done()

            it 'Then the cron function should not have been called after 22 days', ->
                @sandbox.clock.tick 22 * day
