Added test case for Type inheritance