Changed test code from t.Errorf to t.Fatalf to fail fast.