Add a test for multiple writes