We consider the problem of signal detection in Gaussian white noise. Test statistics are linear combinations of squares of Fourier coefficient estimators or 핃2-norms of kernel estimators. We point out necessary and sufficient conditions when nonparametric sets of alternatives have a given rate of exponential decay for type II error probabilities.