Smooth Goodness-of-Fit Tests: A Quantile Function Approach