Add test for a non-empty write buffer.
Add comment to test case.