Fixed test_upload(), added tox config