Added role inheritance and tests.