Add tests for update with gname