tdb: add test for tdb_summary