Port gmx-solvate tests to use CommandLineTestBase

This makes the tests relatively easily extendable to support checking
the output.

Change-Id: Icf835aa143d3832a340d156327c0aee6c80ef4ea