Goodness-of-Fit Tests on Manifolds