Add rspec test for new API call.