Replace deprecated methods in projects using ScalaTest 2.0