change mock response for write, added docs