Recurrent Neural Goodness-of-Fit Test for Time Series