refactored download tests