Tests for Change in a Mean Function when the Data are Dependent