test added to command factory