Added rspec tests for fog error handling