How is the resource id being passed to the unit test? Missing tests for missing or invalid arguments, please also add negative test cases.