Update tdb command.
Add Pretest directory in build process.