Wiener-type tests from a two-sided Gaussian bound