Fix the tooling api sample tests.
Fix daemon base dir isolation.