safety enhancement to accept tests, now it checks that trial_energy is less than infinity