Customizing automatically generating tests

Allow custom test command and arguments for automatically generated tests, with a view to supporting MPI tests.
Please document in header comments