Adjusting p-values when n is large in the presence of nuisance parameters