Added test for downloading with buffer
Merge branch 'buffer-fixes-2'