Fixes to virial_eos and added tests.