Optimal rates of empirical Bayes tests for a positive exponential family in the case of negatively associated samples