We should probably pass in the role, and should add some tests for this inside spec/.