(1) Evidence, information and analyses of evidence obtained from law enforcement officers by the laboratories is privileged and not available to persons other than law enforcement officers nor is the defendant entitled to an inspection of information and evidence submitted to the laboratories by the state or of a laboratory's findings, or to examine laboratory personnel as witnesses concerning the same, prior to trial, except to the extent that the same is used by the state at a preliminary hearing and except as provided in s. 971.23 . Upon request of a defendant in a felony action, approved by the presiding judge, the laboratories shall conduct analyses of evidence on behalf of the defendant. No prosecuting officer is entitled to an inspection of information and evidence submitted to the laboratories by the defendant, or of a laboratory's findings, or to examine laboratory personnel as witnesses concerning the same, prior to trial, except to the extent that the same is used by the accused at a preliminary hearing and except as provided in s. 971.23 . Employees who made examinations or analyses of evidence shall attend the criminal trial as witnesses, without subpoena, upon reasonable written notice from either party requesting the attendance.(2) Upon the termination or cessation of the criminal proceedings, the privilege of the findings obtained by a laboratory may be waived in writing by the department and the prosecutor involved in the proceedings. The employees may then be subpoenaed in civil actions in regard to any information and analysis of evidence previously obtained in the criminal investigation, but the laboratories shall not engage in any investigation requested solely for the preparation for trial of a civil matter. Upon appearance as a witness or receipt of a subpoena or notice to prepare for trial in a civil action, or appearance either with or without subpoena, the laboratories shall be compensated by the party at whose request the appearance or preparation was made in a reasonable amount to be determined by the trial judge, which fee shall be paid into the state treasury. In fixing the compensation the court may give consideration to the time spent in obtaining and analyzing the evidence for the purposes of criminal proceedings.1977 c. 260; 1979 c. 221; 1981 c. 20; 1983 a. 459; 1985 a. 29, 267; 1995 a. 387. Whether to grant a defendant's request under sub. (1) that the crime lab perform tests on the defendant's behalf is a discretionary decision. State v. Lee, 192 Wis. 2d 260, 531 N.W.2d 351 (Ct. App. 1995). But see State v. Lee, 197 Wis. 2d 960, 542 N.W.2d 143 (1996). Cross-examination of a highly qualified witness who is familiar with the procedures used in performing the tests whose results are offered as evidence, who supervises or reviews the work of the testing analyst, and who renders his or her own expert opinion is sufficient to protect a defendant's right to confrontation, despite the fact that the expert was not the person who performed the mechanics of the original tests. State v. Williams, 2002 WI 58, 253 Wis. 2d 99, 644 N.W.2d 919, 00-3065. Under the facts of the case, the privilege in sub. (1) did not prevent the defendant from obtaining evidence he was entitled to under s. 971.23 when he received the physical evidence that the state intended to offer at trial and a copy of the crime lab report and was granted permission to submit the evidence for testing by his own expert. The defendant was entitled to examine the crime lab analyst at trial but not at an evidentiary hearing. State v. Franszczak, 2002 WI App 141, 256 Wis. 2d 68, 647 N.W.2d 396, 01-1393. Under Crawford, 541 U.S. 36, analysts' affidavits that certified that evidence was in fact cocaine were testimonial statements, and the analysts were "witnesses" for purposes of the 6th amendment confrontation clause. Absent a showing that the analysts were unavailable to testify at trial and that petitioner had a prior opportunity to cross-examine them, petitioner was entitled to be confronted with the analysts at trial. Melendez-Diaz v. Massachusetts, 557 U.S. 305, 174 L. Ed. 2d 314, 129 S. Ct. 2527 (2009).