Tests of carbon targets for 12C+12C reactions at astrophysical energies