Remove debug prints
Simplify iteration
Add a basic test for composition of roles