testlib; add examples