Create log directory before testing