added testcase logic