SONARPLUGINS-2574 improve unit tests of CLI