tdb: add tests for double .close() in pytdb