Add upload test. Note that py.test does not automatically run this test.