Use t.Error/t.ErrorF instead if t.Fatal/t.Fatalf Add returns to achieve same behaviour as earlier
format.json