Electrical test method for energy storage charging pile