Refactored download tests, first protocol tests