Fixed problem with creation of logfile for testing