(feature) added logger tests + refactored logger