Medical device quality control