Add a test program for verifying iterator GC behavior.