Add unit test to SONARPLUGINS-2982