Fixing logging and adding a test project