Added a ResultType parameter to the createTestCase functions.