Migrate test to scalatest.