Allow invalidated archive data to be used until they are re-processed

Added DONE_INVALIDATED flag to archiving and considering it when fetching archives
use the code is copy pasted from code found in `testAnotherApi` function - you can refactor in method to reuse code in tests classes