Added unit test and fixed code
Merge branch 'feature/misc-fixes' of https://github.com/splunk/splunk-sdk-csharp into feature/misc-fixes

Conflicts:
	UnitTests/SearchTest.cs