fix return code of `--test-creg`