Add tests for more involved support for specifying roles as external classes