When moving ai-command-selector from gjs to js the underlying behavior changed, this corrects it and adds a test case.