libtest: use unboxed closures