Mark chunks as ready in the tests.
Fixed restore of uncompressed chunks.

Storing uncompressed chunks is a feature that is disbled by default.
A test showed that it was broken.
Merge PR #1385 by @flo - test + storage fix