tests: fix error code assert
tests: fix error code assert

* CliRunner result as error returns 1 (was -1)
  https://github.com/pallets/click/blob/master/click/testing.py#L339

inveniosoftware/invenio-pidstore,inveniosoftware/invenio-pidstore