Introduced unittest and tested the logger