converted tests to ScalaTest