Refs #18470; added tests for archive helper functions:

- Added tests that test the most basic assertions for the helper
  functions
- Fixed an issue on archive_previous_versions discovered after
  writing the tests where the archivator_adapter didn't have any
  reason or custom_message given the fact that the object was not
  archived
- Archive first the object before it's versions if that is selected
  when using the archive dialog