Add extra check for bytes to read in compute_file_sha.
Add tests for adding empty thin packs to object stores.