Sample Complexity of Testing the Manifold Hypothesis