Rework the testing of an empty log file for better testing.

We can now mock just the Run#log method for better coverage.
Add tests for taverna credentials in env variable.

For completeness.