Testing Semiparametric Hypotheses in Locally Stationary Processes