Design of drive cycle for electric powertrain testing