working testcase