Add a test for cmd_select.