Convert tests to ScalaTest