Add tests for log files and improve shared tests.
Merge pull request #73 from Impromptu/log-file-tests

Add tests for log files and improve shared tests.