Fix the print formatter for tests