Enabled setting the user agent for the .NET client

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

#1994
Merge branch 'release' into dev