Add test for chunked writer