Improving Tests for archive Package

used more specific asserts
reordered code
simplified test code
Merge remote-tracking branch 'joomla/pr/4790' into staging