tdb: fix test helper to include own header, fix function definition.