Test user agent get/set and default user agent is not empty