Improved error log message.
Copied the document ID and new revision number to the object before sending it to the out port.
Fixed a test description.
[#5] Added spec test for the WriteDocument component.