Added the unit test for the file logger creation and write