IMO, since the battery is the most expensive component, it's extremely risky (maybe dangerous depending on the source of the battery) to purchase a used e-bike unless you know something of its history (or know how to test it). Some very knowledgeable individuals on endless sphere suggest assuming the battery is toast when negotiating.