added nonlinearity test