Fix unit test for command chains