Fix `--output` build unit test.