Seek buffer write list after copying part to buffer data list

Tidy ups in test and pagebuf.c