Added one more test for computeEnergy.