When multiple tests are made, and they are not independent, it becomes hard to assess the p-value analytically. However, simulations can be used to solve this problem
BE L09 p-values by simulations - Bayesian Econometrics Lec 9 Using simulations to assess match between models and reality