Fixup unit tests
Allow callers to specify a User-Agent (and add a default)