added rspec tests in spec/apis/