add test for console output format and fix it