added testcase for the second rest method