test case implemented