fixed sonar-warning
created logger + junittest