make chunksize configurable and return as part of the metadata back

+ basic test to validate chunking (and another test that snuck in)