Add code and test for passing parameters to extended build function