fix typo and update specs for logging