Tests

Adds request specs for the rails API.