Updated rspec tests and added one more api call test