Make sure archiving is done in tests

Also wake up archiving code right away when ARCHIVE command is issued,
don't wait till internalPollTime has lapsed