Refactored test_upload and test_get_upload_status to use
mock side effect to return successive values