added tests for package concurrent. modified happensBefore to return a DeferredFuture