don't try to assign an itemized hash to a hash var (deprecated)
expect the "Connection: close" in responses in tests as well
Merge pull request #4 from timo/small_fixes

Small fixes: deprecation and outdated test case.