Large and moderate deviations in testing Ornstein-Uhlenbeck process with linear drift