Update gz_8p8i.c to improve test and add input test