Add test_free_energy test
Make the test faster (50s -> 20s)