This should be implemented in ScalaTest