adding gzip decompression for states, fixed the test resources