[Concept] [PATCH 12/18] buildman: Add unit tests for _prepare_output_space()