Adjustments to buildParameter function + tests

Related to #7