Integration of the API. Tests in rspec.