g-test on ios