g-tests