Add test for the event `saving`

This test shows how to use the event `saving` to make sure a relation
is defined before saving the document.