buildman: Add a functional test