Goodness-of-fit tests in semi-linear models