Add basic tests on upload