[Concept] [PATCH 10/18] buildman: Add unit tests for _prepare_thread()