adaptive smoothing test script