fix exceptions in test
fix exceptions in test

joy32812/snakeyaml,marcuskara/snakeyaml,Mause/snakeyaml,SorinS/snakeyaml,UcasRichard/snakeyaml,cuizhennan/snakeyaml,yishenggudou/snakeyaml,mapiman/snakeyaml,yeison/snakeyaml,Fighter777/snakeyaml,thinkofdeath/snakeyaml,youxinren/snakeyaml,umeding/snakeyaml,virustotalop/snakeyaml,nxbdi/snakeyaml,ilantoren/snakeyaml,Akkrite/snakeyaml,RussellSpitzer/snakeyaml,mc-nekoneko/snakeyaml,jeremypepper/snakeyaml,votinhthieugia/snakeyaml,yskumar007/snakeyaml,ldh0826/snakeyaml,AssafMashiah/assafmashiah-yaml