Test energy units

Tests on internal function involving energy units