added logger. tests work :)
added log clearing