Fix %Z format tests