Entropy testing for nonlinearity in time series