Example endpoint test with rspec