Add a test case for writing a double to a filled buffer.