Hypothesis testing in time series analysis