Added tests and refactored winrm fix
Merge pull request #6 from trobert2/fix-winrm-2008

Added tests and refactored winrm fix