defined all the functions in TestCases