On a Theorem of E. Sparre Andersen and its Application to Tests Against Trend.