STS-3102: added test cases for type hierarchy checks with inner classes involved