Added tests, log bad URL parse
go fmt