Use the new rspec mock to double syntax
Adding polling logic to upload
Handling parsing errors