WIP: fix test and buildParameter