implemented test_case and test_cases.