Adds a single test for the index action of farms_controller, and validates a JSON response.