exception handling in test_gromacs