Improve coverage for commands utils
Add specs for logger