fix test case, and add basic gzdecode fallback