add cpp inheritence test