improve tests coverage on ami.parser