 
     server = null
 
-    before (next) ->
+    beforeEach (next) ->
       server = http.createServer (req, res) ->
         res.writeHead 200, {'Content-Type': 'text/plain'}
         res.end 'okay'
       server.listen 12345, next
 
-    after (next) ->
+    afterEach (next) ->
       server.close()
       server.on 'close', next
 

        destination: destination
        md5sum: '2f74dbbee4142b7366c93b115f914fff'
      , (err, downloaded) ->
        err.message.should.eql 'Invalid checksum, found "df8fede7ff71608e24a5576326e41c75" instead of "2f74dbbee4142b7366c93b115f914fff"'
        server.close()
        server.on 'close', next

    they 'count 1 if new file has correct checksum', (ssh, next) ->
      # create server

        destination: destination
        md5sum: 'df8fede7ff71608e24a5576326e41c75'
      , (err, downloaded) ->
        server.close()
        server.on 'close', ->
          return next err if err
          downloaded.should.be.ok
          next()

    they 'count 0 if a file exist with same checksum', (ssh, next) ->
      # create server
