unit test autocorrelation function