[test_case] better implementation