Solve scalatest deprecations for 1.6.1->1.9.1.