change api to render json, from respond with
add respec, user model spec, user factory