added scalatest dependency
working example