scalatest test code