Initial test method for energy storage charging pile