A nonparametric test of additivity in generalized nonparametric regression with estimated parameters