Test of a LYSO matrix with an electron beam between 100 and 500 MeV for KLOE-2