Rewrote...
Made the options for 'test_command' optional, added an init_test function
to initialise groups of tests, and made some of the testing logic into a
function.
This should ease the writing of more complex tests - hopefully, anyway :)