Enabled setting the user agent for the .NET client

- Modified the test for headers to check for user agent as well

#1994