You need to use a meter to measure the battery voltage going into the controller continuously. I have skinned a little insulation off the wires, not at the same point so there would be no short. Then use alligator clips with rubber boots. Could be a connector, could be a battery, could be downstream in the controller or an accessory. If battery voltage is above minimum at all times it is down stream. A holder to make a multimeter visible at all times is required.
A throttle with a voltage indicator built in can be useful. These read a separate power wire from the battery, usually to a female .157" bullet socket. I usually pick up the +48 from an alarm power connector.
I have my suspicions of patented push in battery connectors. I use wires to an XT90 on my battery, now replaced by Dorman insulated crimp flag terminals since the XT90 I soldered to the controller wires fell off. 6 years, 12000 miles, I never lose power unless the battery is actually run down by too many miles+hills. My battery is held in place by aluminum angle, machine screws and elastic stop nuts. 22 of them so nobody has successfully stolen the battery while I was shopping. 2 attempts.