Since the batteries are working when you get back home it should be a temperature issue? What kind of weather were you riding at?
Despite having a neoprene cover, if you ride at very cold temps and the cover gets wet maybe it's not enough to keep the battery warm? Although your friend's battery...