Added some fixes in the journalization of document modification:

 - Fix that separte metadata changes are journalized as metadata changes now instead as `file and metadata` changes .
 - Always create a separate journal entry for public_trial changes
 - When changing only the public_trial, don't create an entry for metadata changes.
 - Reworked tests for the document modification journalization.