Add test to create log directory.
A few more fine tunes to the test suite.