Asymptotically pivotal statistic for surrogate testing with extended hypothesis