Optimal Change-point Testing for High-dimensional Linear Models with Temporal Dependence