Improve test diagnostic when credentials sample data badly formatted