Add a ScalaTest for tail.