Clinical trials as diagnostic tests