Move $command->log() and $command->prelog() to test model