Scala test helpers