Renamed `Electric.proportion_of_mains_energy` to `proportion_of_mains`.
Added simple test for `Electric.proportion_of_energy()`