TST: convert wavelet.rst regression doctests to proper unit tests.