Kolmogorov-Smirnov Tests of Fit Based on Some General Bounds