testing inheritance type