A new approach for testing the randomness of heteroskedastic time series data