fixed return value for test case