Energy consumption test method for energy storage charging pile