gtk2 test: use do ... end for block