Extend document with write in tests