tdb2: test: import tdb1's tests.