[WIP][DD-833] re-factored/fixed FunctionsResource test