Revert "Revert "Add Write to the tests""

This reverts commit 093343cc9eb77ecb9e3bfafd9908fd3a40e38d68.