Fix mocked calls in unit/modules/archive_test.py

This is due to the changes in #18621