fixed the copy constructor of TestCase