tdb: import unit tests from CCAN into tdb/test/