Adding unit test and fixes for formatter helper