refactoring tests and give a name to Logger