Add test for write request