Add more robust error handling for unexpected response types
Fix testcase name to match what is actually happening
Merge pull request #11 from toopher/hotfix/add-error-handling

Add more robust error handling for unexpected response types