Add test for WaveletMatrix::freq()