Add a functional test for republishing content after "Failed/Error"

Reset content to "Draft" if PUT /contents/<id>@draft.json