Random archive option added

Tests use NoError and Equal from assert
Clock faking via dateFlag