Viscoelastic and inertia effects on the angular velocity autocorrelation function