Fix bug in archive test