More unit test coverage. Added a parameter to runTest to allow disabling the assertion there and a returned string instead, enabling an assertion to be applied to that string from the calling method.