moved some tests to scalatest