Add putBytes(byte[], int, int) and update tests
Fix injection of ChecksumProviderFactory