switched unit testing to ScalaTest