Stylistic changes
Use t.Fatal instead of panic for fatal error in tests
Use fatalf instead of errorf for fatal error in tests