add constructor for TestCase