test program: -gc option to print GC stats