resize
add test for resize
Merge branch 'bufsize'