Use Tuple2 instead of Pair
Use Future {...} instead of future {...}
Fix warning: Use new syntax of ScalaTest for checking Exception