Fix test which is missing the resource permission