Add tests for archive