[cc] Make some <object> tests fully valid.