A Hypothesis Testing Technique for the Wavelet Transform in the Presence of Noise