test program & empirical Bayesian version