Add SetId() to Cmd along with tests.