Equivalence of regression curves sharing common parameters