Added a few encoding tests.
Added decofing for metadata, produce and offset responses.