Added functional test for Rest Service