Added temp_at_thermo function
Added test for temp_at_thermo function