test-set-status convertered to support rpc