     before helpers.clearDB db
     before helpers.instantiateApp
 
-    before ->
-        data = [
+    before (done) ->
+        accounts = [
             { label: 'compte courant', balance: '1000' }
             { label: 'livret A', balance: '2000' }
         ]
-        indexer = fakeServer data, 200, (url, body) ->
+        operations = [
+            account: 'livret A'
+            label: 'remise cheque'
+            amount: '50.00'
+            date: '2012-12-31T00:00:00Z'
+        ,
+            account: 'livret A'
+            label: 'achat supermarche'
+            amount: '-100.00'
+            date: '2012-12-31T00:00:00Z'
+        ]
+        indexer = fakeServer null, 200, (url, body) ->
 
             if url is '/connectors/bank/bnp/'
                 should.exist body.login
                 should.exist body.password
+                return accounts
+            if url is '/connectors/bank/bnp/history/'
+                should.exist body.login
+                should.exist body.password
+                return operations
 
-        @indexerServer = indexer.listen 9092
+        @indexerServer = indexer.listen 9092, done
 
     after ->
         @indexerServer.close()

    after helpers.clearDB db


    describe 'Bank account data retrieval', ->

        it 'When I send a request for my bank account data', (done) ->
            data =

            @body[1].label.should.equal 'livret A'
            @body[1].balance.should.equal '2000'


    describe 'Bank operations data retrieval', ->

        it 'When I send a request for my bank account data', (done) ->
            data =
