working for test case