Test of clustering in light nuclei and applications to nuclear astrophysics