added test cases for formatter