tests for simple moving avearge