Test utilities in Scala