ldb_tdb: Add tests for truncated index keys