eos returns derivatives
add get_energy to eos
small fix to mixture.py
add a test for energy calculation