Detection of regime shifts in the environment: testing "STARS" using synthetic and observed time series. (31st July 2019)