pmd: duplicate code: removed unused test