Only mock when using RTD