Fixed some PMD violations in the test classes.