SurrogateTest function

Surrogate data testing