Add tests for setting a custom roleField