Refactor role appointment tests