Testbeam results on particle identification with aerogel used as RICH radiator