Reduced duplication in scalatest.scala by using shared settings.