Where testimony is taken and preserved for use at trial or other stage of the proceeding pursuant to Sections 6151 and 6152, the witness shall be examined in open court by the party on whose behalf he or she is present, and the adverse party shall have the right of cross-examination.