Added testcase for userrestapi