Robust empirical Bayes tests for continuous distributions