update sanity test checks for GROMACS 5.x

cleaned up version of #454 by @JackPerdue, avoid duplicate code