Fix a bug in the command test