add tests on ami.event