Add testCommand method