updates TreeCPD tests according to the new representation