adding some NOSONAR commends and adding some tests to make sonar with using all public methods happy