Add tests to check login required for uploading