fixed PMD errors in JUnit