     time:           new Date(start_time)
     stream_group:   "test"
 
+before
+
 describe "Analytics", ->
     analytics   = null
     es          = null
     idx_prefix  = null
 
     sent_dur    = 0
-    sent_bytes  = 0
+    sent_kbytes = 0
     last_ts     = null
 
     before (done) ->

                    type:       "listen"
                    client:     START.client
                    time:       new Date( start_time + i*10*1000 )
                    bytes:      300000
                    duration:   10.0
                    stream:     "test-256"

                listens.push listen
                sent_dur    += listen.duration
                sent_bytes  += listen.bytes
                last_ts     = listen.time

            lFunc = (cb) ->

                done()

        it "gets bytes sent correct", (done) ->
            expect(session.kbytes).to.eq sent_kbytes
            done()

        it "gets duration sent correct", (done) ->
