Kolmogorov-Smirnov Type Tests Under Spatial Correlations