Add API test for delete uploads
Fix rubocop style errors