Construct the TestCase object properly