Fix warnings
Add condition for archive test