testcase for return value