Battery energy storage system grid connection test