add download to test, and small fixes