fix updateengine.RebootNeededSignal and add tests