Made a simple test for logger and made bugfixes to it