Added archive-put unit tests.
Lots of other unit test improvements.