Refactor test.

- Move noshrink to g_uuid.
- Remove dead code.