remove log directory at end of tests.
added log directory at the beginning of the tests.