A Large-Sample Test for Moving Averages