Added the test for a Buffer that can produce and consume electricity (charge and discharge).