Rename user-agent to user_agent
Add test for image download - first try to avoid internet usage (use invoke test_wo_net for this)
adopt download image test - fix a minor bug