Bug fixes in the HttpObjectDecoder and test cases