Fixing decompress closure and adding test.