FedEx is testing a new powertrain that makes its trucks into electric vehicles with onboard diesel generators.