add checks in ewma test