Finished rspec tests and api.