build-scripts: add unit tests from #27