Fix the output for formatter
Add tests of check_installed_by_npm