Modified inheritence test to check for instances