Test Scala futures