A modified kolmogorov-smirnov type goodness of fit test