Add checkouts api integ test. Fix a typo in checkouts_controller.rb.