Successfully created tests for checking calculateMovingAverage. May have detected a bug in MSM code, results inconsistent. Need to investigate.