Fix commands test of check_installed_by_gem with_version