add scalatest support and initial tests