added spec for buildWithParameters