Move class TestCaseKey into TestCase.scala.