fix typo and add test for chunk size 1