Moving average formula & test check