using better scalatest syntax for tests