Test of QED in e+e− annihilation at energies between 12 and 31.6 GeV