Optimal testing using combined test statistics across independent studies