fixed rspec and updated fix to upload bug