converted to the scalatest funsuite testing style