fix some deprecations from scalatest