Remove duplication in updater tests