Test - Add test for formatMsg