add test case for %g