add_test_case

refactoring