add testing function, pass test_case
add the code for verifying test function