add functional test on output format