fixed mocha test for rest.Resource