added rspec tests for api docs