TEST: add util/wrap.pl and use it