Before revision: Counting the number of local extrema of the cumulative sum of data points yields the R-test, a new single-sample non-parametric test.
After revision: Counting the number of local extrema of the cumulative sum of the sample. The single-sample non-parametric test.