UI: fix bug in loop control;
GC PoP debugging;
add GC unit test