added parameter error tests to stitchDom