Estimation and test of linearity for a class of additive nonlinear models