Refactor role tests into separate methods