add class hierarchy test case