Fixing role inheritance check

Tests for role class inheritance.